<script>
	export default {
		onLaunch: function() {
			this.$apis.config.setting().then(res => {
				uni.setStorageSync("dict", res)
			}).catch((error) => {
				console.log(error)
			})
			if(uni.getStorageSync("token")){
				this.$apis.user.getInfo().then(res => {
					uni.setStorageSync("userInfo", res);
				}).catch(err => {
					console.log(err)
				})
			}
		}
	}
</script>

<style lang="scss">
	@import '/styles/main.scss';
</style>
